package com.designpatterns.ProducerConsumer;

import java.util.LinkedList;

/**
 * Created by 41579 on 2017/6/8.
 */
public class MyLinkedList<E> extends LinkedList<E>{
    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        for(E e:this){
            sb.append("[").append(e.toString()).append("]");
        }
        sb.append("}");
        return sb.toString();
    }
}
